package com.liull.netty.sanshengshui.first_example;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 15:54 2021/4/29
 * @Modified By:
 */
public class ClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        System.out.println("收到来自：" + ctx.channel().remoteAddress() + "消息：" + msg);
    }
}
